package com.ts.main.mini.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 阿里云配置属性类
 */
@Component
@ConfigurationProperties(prefix = "spring.cloud.alicloud")
@Data
public class AlicloudProperties {
    /**
     * 访问密钥ID
     */
    private String accessKey;

    /**
     * 访问密钥密钥
     */
    private String secretKey;

    /**
     * OSS配置
     */
    private Oss oss = new Oss();

    /**
     * OSS配置内部类
     */
    @Data
    public static class Oss {
        /**
         * OSS服务端点
         */
        private String endpoint;

        /**
         * OSS存储桶名称
         */
        private String bucket;

        /**
         * OSS访问主机地址
         */
        private String host;
    }
}
